package cn.iocoder.yudao.module.asset.controller.admin.manager.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import java.math.BigDecimal;
import java.util.*;
import javax.validation.constraints.*;
import org.springframework.format.annotation.DateTimeFormat;
import java.time.LocalDateTime;

@Schema(description = "管理后台 - 资产管理新增/修改 Request VO")
@Data
public class ManagerSaveReqVO {

    @Schema(description = "数据id", requiredMode = Schema.RequiredMode.REQUIRED, example = "16890")
    private Integer id;

    @Schema(description = "资产编号")
    private String assetNumber;

    @Schema(description = "条码编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "条码编号不能为空")
    private String barcodeNumber;

    @Schema(description = "资产名称", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "资产名称不能为空")
    private String title;

    @Schema(description = "资产分类", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "资产分类不能为空")
    private String assetType;

    @Schema(description = "品牌")
    private String brand;

    @Schema(description = "规格型号")
    private String specificationModel;

    @Schema(description = "数量")
    private Integer number;

    @Schema(description = "计量单位")
    private String unitOfMeasurement;

    @Schema(description = "资产原值")
    private BigDecimal originalValue;

    @Schema(description = "取得时间")
    private Date obtainTime;

    @Schema(description = "管理部门")
    private Integer managementDept;

    @Schema(description = "管理人")
    private Integer managementUser;

    @Schema(description = "使用部门")
    private Integer useDept;

    @Schema(description = "使用人")
    @NotNull(message = "使用人不能为空")
    private Integer useUser;

    @Schema(description = "存放地点")
    @NotEmpty(message = "存放地点不能为空")
    private String storageLocation;

    @Schema(description = "业务状态", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "业务状态不能为空")
    private String businessStatus;

    @Schema(description = "成新率")
    private String newnessRate;

    @Schema(description = "财务记账日期")
    private LocalDateTime financialAccountingTime;

    @Schema(description = "备注", example = "随便")
    private String remark;

    @Schema(description = "图片", example = "随便")
    private String files;

}
